home *** CD-ROM | disk | FTP | other *** search
- /*
- * Copyright 1991, 1992, 1993, 1994, Silicon Graphics, Inc.
- * All Rights Reserved.
- *
- * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Silicon Graphics, Inc.;
- * the contents of this file may not be disclosed to third parties, copied or
- * duplicated in any form, in whole or in part, without the prior written
- * permission of Silicon Graphics, Inc.
- *
- * RESTRICTED RIGHTS LEGEND:
- * Use, duplication or disclosure by the Government is subject to restrictions
- * as set forth in subdivision (c)(1)(ii) of the Rights in Technical Data
- * and Computer Software clause at DFARS 252.227-7013, and/or in similar or
- * successor clauses in the FAR, DOD or NASA FAR Supplement. Unpublished -
- * rights reserved under the Copyright Laws of the United States.
- */
-
- #include <stdio.h>
- #include <gl.h>
- #include <device.h>
-
- #define MODELDIR "/usr/demos/data/models/"
-
- /* drawing data types */
-
- enum DrawType
- {
- POLYGONS,
- LINES,
- SUBSMOOTHLINES,
- NUM_DrawTypes
- } ;
-
- #define FASTMAGIC 0x5423
-
- typedef struct {
- float *v0, *v1;
- } flipedge;
-
- typedef struct {
- int npoints;
- int display ; /* Draw me at all ? */
- enum DrawType type ; /* Polygons? Lines? What? */
- int select ; /* Am I selected? */
- int material; /* Material index */
- int ablend; /* Alpha-blend me? */
- int swirl; /* Go crazy with swirling? */
- char *fname ; /* Filename for menus */
- float *data; /* Raw polygon data */
- float *swirldata; /* Randomized data for swirling */
- flipedge *edge; /* Processed edges */
- int nedges;
- float er[4]; /* Cumulative rotation */
- float espin[4]; /* Incremental rotation to spin */
- float trans[3]; /* Translation */
- } flipobj;
-
- flipobj *readflipobj();
-
-